package com.qf.day10_4;

/**
 * @author wgy
 * @version V1.0
 * @Project day10
 * @Package com.qf.day10_4
 * @Description: ${TODO}
 * @Date 2021/5/31 16:06
 * 用户类
 */
public class User {
    /**
     * 卡号
     */
    private String cardNo;
    /**
     * 身份证号
     */
    private String identity;
    /**
     * 姓名
     */
    private String username;
    /**
     * 密码
     */
    private String password;
    /**
     * 电话
     */
    private String phone;
    /**
     * 余额
     */
    private double balance;

    /**
     * 带参构造方法
     * @param cardNo
     * @param identity
     * @param username
     * @param password
     * @param phone
     * @param balance
     */
    public User(String cardNo, String identity, String username, String password, String phone, double balance) {
        this.cardNo = cardNo;
        this.identity = identity;
        this.username = username;
        this.password = password;
        this.phone = phone;
        this.balance = balance;
    }

    /**
     * 无参构造方法
     */
    public User() {
    }

    public String getCardNo() {
        return cardNo;
    }

    public void setCardNo(String cardNo) {
        this.cardNo = cardNo;
    }

    public String getIdentity() {
        return identity;
    }

    public void setIdentity(String identity) {
        this.identity = identity;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public double getBalance() {
        return balance;
    }

    public void setBalance(double balance) {
        this.balance = balance;
    }

}
